package com.dcc.inventory;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

@SpringBootApplication
@MapperScan("com.dcc.inventory.mapper")
public class InventoryApplication extends ServletInitializer {
    public static void main(String[] args) {

        SpringApplication.run(InventoryApplication.class,args);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder springApplicationBuilder){
        return springApplicationBuilder.sources(InventoryApplication.class);
    }
}
